<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
    // 2 apply的应用
    // fn.apply(,[])

    // Math.max(3, 5, 6);

    var arr = [5, 10, 1, 3, 6];
    // Math.max不能求数组中的最大值
    // console.log(Math.max(arr));

    console.log(Math.max.apply(null, arr));
    console.log(Math.max.apply(Math, arr));
    

    // console.log(1, 2, 3);
    // console.log(arr);

    console.log.apply(console, arr);


  </script>
</body>
</html>